// const Tokenname = 'tokens'
// 封装存储token的函数
export const setToken = (token) => {
  localStorage.setItem('tokens', JSON.stringify(token))
}
// 封装移除token的函数
export const removeToken = () => {
  localStorage.removeItem('tokens')
}
// 封装获取token的函数
export const getToken = () => {
  return JSON.parse(localStorage.getItem('tokens')) || []
}
